﻿<Button @onclick="e => CenterModal?.ToggleAsync()">垂直居中的弹窗</Button>
<Modal @ref="CenterModal">
    <ModalDialog IsCentered="true" Title="垂直居中的弹窗">
        <BodyTemplate>
            <div>我是弹窗内正文</div>
        </BodyTemplate>
    </ModalDialog>
</Modal>
